using SmartSoft.DAL;
using System.Web.Services;
using System;
using System.Data;
using System.Data.SqlClient;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.None)]
public class WSDmFileDataAccess : System.Web.Services.WebService
{
    private DmFileDataAccess objDataAccess = new DmFileDataAccess();
    public WSDmFileDataAccess()
{
}

    [WebMethod(MessageName = "NoneParams", Description = "", EnableSession = true)]
    public DataTable GetTable()
{
        return objDataAccess.GetTable();
}

    [WebMethod(MessageName = "OneParams", Description = "", EnableSession = true)]
    public DataTable GetTable(object pi_Order, int pi_Type)
{
object[] arr = Validator.Validate(pi_Order);
return objDataAccess.GetTable(arr[0], pi_Type);
}

    [WebMethod]
    public int SaveRow(DataTable tableRow)
{

return objDataAccess.SaveRow(tableRow.Rows[0]);
}
}
